﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//1、编写程序，定义一个枚举类型，表示订单的状态值：新订单、已发货、已签收、已评价；
//声明一个枚举类型表示某个订单的状态并将其值输出。
namespace Demo03
{
    class Program
    {
        public enum state {
            新订单,
            已发货,
            已签收,
            已评价,
        }
        static void Main(string[] args)
        {
            state st = state.新订单;
            int m = (int)st;
            Console.WriteLine(st);
            Console.WriteLine(m);
            state sg = state.已发货;
            int n = (int)sg;
            Console.WriteLine(sg);
            Console.WriteLine(n);
            state g = state.已签收;
            int f = (int)g;
            Console.WriteLine(g);
            Console.WriteLine(f);
            state a = state.已评价;
            int b = (int)a;
            Console.WriteLine(a);
            Console.WriteLine(b);
           
            Console.ReadKey();
        }
    }
}
